View::CanPaste
Section: ET++ method description (n)
Updated: automatically Mon Apr 8 20:17:22 1991
Index
Return to Main Contents
NAME
View::CanPaste - instance method
TEMPLATE
canPasteData = bool
CanPaste(char * type)
SPECIFIERS
public
abstract
virtual
DESCRIPTION
CanPaste must check whether this can paste data of type type from the clipboard. This method is called to find out whether to enable or disable the paste menu item. The default implementation returns FALSE.
CanPaste should be overridden only together with the method PasteData.
For example, the method TextView::CanPaste returns TRUE if the type is either cDocTypeET or cDocTypeAscii.
Method is sometimes overridden.
ARGUMENTS
- char * type
-
is the type of the data contained in the clipboard. Common types are cDocTypeET which indicates ET++ Object Input/Output format and cDocTypeAscii for pure ASCII text.
RETURN ARGUMENT
- bool canPasteData
-
indicates whether this can paste data of type type from the clipboard
CATEGORIES
clipboard, overrider interface
FIRST DEFINITION
class View
FILES
- implementation:
-
View.C
Index
- NAME
-
- TEMPLATE
-
- SPECIFIERS
-
- DESCRIPTION
-
- ARGUMENTS
-
- RETURN ARGUMENT
-
- CATEGORIES
-
- FIRST DEFINITION
-
- FILES
-
This document was created by
man2html,
using the manual pages.
Time: 00:40:21 GMT, March 30, 2022